package com.cmas.platform.service;

import com.aidex.common.core.domain.R;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cmas.platform.domain.ApproveRecord;
import com.cmas.platform.domain.Post;
import com.cmas.platform.vo.PostVo;

import java.util.List;
import java.util.concurrent.Future;

/**
 * 帖子管理Service接口
 * @author su
 * @email 1218819874@qq.com
 * @date 2023-03-15
 */
public interface PostService extends IService<Post> {


    /**
     * 查询帖子管理数组
     * @param post 实体
     * @return 结果
     */
    public List<Post> selectPostList(Post post);

    /**
     * 批量删除帖子管理
     * @param ids 需要删除的帖子管理ID集合
     * @return 结果
     */
    public int deletePostByIds(String[] ids);

    List<PostVo> selectPostVoList(Post post);

    R<Post> addPost(Post post);

    R<Post>  updatePost(Post post);

    void approveByAsync(Post post);


    void approve(ApproveRecord approveRecord);

    QueryWrapper<Post> setQueryWrapper(Post post);
}
